//
//  EditWeightEntryViewController.h
//  IWeighMyself
//
//  Created by Francisco Gindre on 9/8/10.
//  Copyright 2010 Apps Crafter. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Weight.h"
#import "IWeighMyselfAppDelegate.h"
#import "WeightSentCell.h"
#import "LogNewWeightViewController.h"
#import "WeightListViewController.h"
@interface EditWeightEntryViewController : LogNewWeightViewController {
	
	WeightSentCell *sentCell;
	
	WeightListViewController *weightList;
}

@property (nonatomic,retain) IBOutlet WeightSentCell *sentCell;
@property (nonatomic,retain) WeightListViewController *weightList;
/**
 init the the view with a weight
 */

-(id)initWithWeight:(Weight*)aWeight theWeightList:(WeightListViewController*)parentView;
/*
 saves changes to the current weight
 */

-(void) saveChanges:(id)sender;

/*
 notifies that the switch was modified
 */

-(IBAction) switchChanged:(id)sender;

/*
 creates the row containing "mark as sent"
 */
- (WeightSentCell *)tableView:(UITableView *)tableView createSentCell:(NSIndexPath *)indexPath ;
@end
